home *** CD-ROM | disk | FTP | other *** search
- '******************************************************************************
- 'File: dwt.bi
- 'Version: 2.22
- 'Tab stops: every 2 columns
- 'Project: DiamondWare's Sound ToolKit
- 'Copyright: 1994-1995 DiamondWare, Ltd. All rights reserved.
- 'Written: by Keith Weiner, Erik Lorenzen, and Don Lemons
- 'Purpose: Contains declarations for the DW Timer
- 'History: 94/09/24 DL Ported to .BI
- ' 94/11/27 EL Finalized for 1.00
- ' 95/04/12 EL Finalized for 1.02
- ' 95/06/06 EL Finalized for 1.03, no changes
- ' 95/07/23 EL Finalized for 1.04, no changes
- ' 95/07/23 EL Finalized for 2.00, no changes
- ' 95/08/29 EL Finalized for 2.10, no changes
- ' 95/10/18 EL Finalized for 2.20, no changes
- ' 95/12/07 EL Finalized for 2.21, no changes
- ' 96/10/11 EL Finalized for 2.22, no changes
- '
- 'NOTE: This code is __NOT__ compatible with source profilers
- '******************************************************************************
-
-
-
- 'Below are the timer rates supported by DWT. Anything in between
- 'the listed values will cause the DOS/BIOS clock to tick erratically
- 'and is thus not allowed. Any value higher than 145.6 Hz means
- 'you have some very special circumstances; dwt won't fit your needs
- 'anyway.
-
- CONST dwt182HZ = 0 ' 18.2 Hz
- CONST dwt364HZ = 1 ' 36.4 Hz
- CONST dwt728HZ = 2 ' 72.8 Hz
- CONST dwt1456HZ = 3 '145.6 Hz
-
-
-
- DECLARE SUB dwtInit ALIAS "DWT_INIT" (BYVAL rate%)
-
- 'If the program has called dwt_Init, it _MUST_ call dwt_Kill before it
- 'terminates.
- '
- 'NB: Trap critical errors. Don't let DOS put up the
- ' "Abort, Retry, Fail?" text. ('sides, it'll destroy your pretty gfx)
- DECLARE SUB dwtKill ALIAS "DWT_KILL" ()
-
-
- 'The following 2 subroutines affect the timer, but not the music
- DECLARE SUB dwtPause ALIAS "DWT_INIT" ()
-
- DECLARE SUB dwtUnPause ALIAS "DWT_KILL" ()
-
-
- 'Number of ticks since Beginning of World
- DECLARE FUNCTION dwtMasterTick& ALIAS "DWT_MASTERTICK" ()
-